<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload=function(){
				var btn1=document.getElementById("btn1");
				btn1.onclick=function(){
			    var box1=document.getElementById("box1");
			    box1.style.left=parseInt(box1.style.left)+100+"px";
				}
			
			}
			
		</script>
	</head>
	<body>
		<input type="button" id="btn1" value="按钮" />
		<div id="box1" style="width: 200px; height: 200px; background-color: blue; position: absolute;left: 0px;"></div>
	</body>
</html>
